﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABELGX
{
    public class BatteryCell
    {
        //public SensorSet VoltageSet { get; set; }
        //public SensorSet TemperatureSet { get; set; }
        public int Index {  get; set; }
        //double sourceVoltage;
        //double voltage;
        //public double Voltage
        //{
        //    get => voltage;
        //    set
        //    {
        //        if(sourceVoltage == value)
        //        {
        //            return;
        //        }
        //        sourceVoltage = value;
        //        voltage = sourceVoltage * VoltageSet.Scale + VoltageSet.Offset;
        //        VoltageText = voltage.ToString(VoltageSet.Format);
        //    }
        //}
        //public string VoltageText { get; private set; }
        public Sensor Voltage { get; set; }
        public Sensor Temperature {  get; set; }

        public BatteryCell(SensorSet voltageSet, SensorSet temperatureSet, int index)
        {
            //VoltageSet = voltageSet;
            //TemperatureSet = temperatureSet;
            Index = index;
            Voltage = new Sensor(voltageSet);
            Temperature = new Sensor(temperatureSet);
        }
    }
}
